package com.xiongtian.springframework.aop;

/**
 * @Author: xiongtian
 * @CreateTime: 2025-04-17  11:41
 * @Version: 1.0
 * @Description: <p>
 * Filter that restricts matching of a pointcut or introduction to
 * a given set of target classes.
 * </p>
 * 定义类匹配类，用于给切点找到给定的接口和目标类
 */

public interface ClassFilter {

    /**
     * Should the pointcut apply to the given interface or target class?
     *
     * @param clazz the candidate target class
     * @return whether the advice should apply to the given target class
     */
    boolean matches(Class<?> clazz);
}
